cmake_minimum_required(VERSION 3.5)
project(client_test)

# Default to C99
if(NOT CMAKE_C_STANDARD)
  set(CMAKE_C_STANDARD 99)
endif()

# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
  set(CMAKE_CXX_STANDARD 14)
endif()

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

#set(CMAKE_PREFIX_PATH ../../install)

find_package(ament_cmake REQUIRED)
find_package(gui_client REQUIRED)
find_package(rclcpp REQUIRED)
find_package(example_interfaces REQUIRED)


# 查找依赖文件
add_executable(complex_test
        src/complex_test.cpp
        )

ament_target_dependencies(complex_test
        gui_client
        rclcpp
        example_interfaces
        )

install(TARGETS complex_test
        DESTINATION lib/${PROJECT_NAME})

ament_package()
